package cn.kent.abstractFactoryPattern;

/**
 * @author kent
 * @date 2021/5/11 18:14
 */
public class FemaleHumanFactory extends AbstractHumanFactory {
    /**
     * 创建一个女性黄人
     */
    @Override
    public Human createYellowHuman() {
        return super.createHuman(HumanEnum.YellowFemaleHuman);
    }

    /**
     * 创建一个女性白人
     */
    @Override
    public Human createWhiteHuman() {
        return super.createHuman(HumanEnum.WhiteFemaleHuman);
    }

    /**
     * 创建一个女性黑人
     */
    @Override
    public Human createBlackHuman() {
        return super.createHuman(HumanEnum.BlackFemaleHuman);
    }
}
